package com.ruoyi.comprehensive.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.comprehensive.domain.PetitionLetter;
import com.ruoyi.manager.domain.SoldierBaseInfo;

/**
 * 网上信访Mapper接口
 *
 * @author Allen
 * @date 2021-08-31
 */
public interface PetitionLetterMapper {
    /**
     * 查询网上信访
     *
     * @param id
     *         网上信访主键
     *
     * @return 网上信访
     */
    public PetitionLetter selectPetitionLetterById(Long id);

    /**
     * 查询网上信访列表
     *
     * @param petitionLetter
     *         网上信访
     *
     * @return 网上信访集合
     */
    public List<PetitionLetter> selectPetitionLetterList(PetitionLetter petitionLetter);

    /**
     * 新增网上信访
     *
     * @param petitionLetter
     *         网上信访
     *
     * @return 结果
     */
    public int insertPetitionLetter(PetitionLetter petitionLetter);

    /**
     * 修改网上信访
     *
     * @param petitionLetter
     *         网上信访
     *
     * @return 结果
     */
    public int updatePetitionLetter(PetitionLetter petitionLetter);

    /**
     * 删除网上信访
     *
     * @param id
     *         网上信访主键
     *
     * @return 结果
     */
    public int deletePetitionLetterById(Long id);

    /**
     * 批量删除网上信访
     *
     * @param ids
     *         需要删除的数据主键集合
     *
     * @return 结果
     */
    public int deletePetitionLetterByIds(Long[] ids);
}
